package com.baidu.Chapter02;

import java.util.Scanner;

public class ex2_16 {
    public static void main(String[] args) {
        System.out.print("Enter the side：");
        Scanner sc=new Scanner(System.in);
        double side=sc.nextDouble();
        double area=3*Math.sqrt(3)/2*side*side;
        System.out.printf("The area of the hexagon is：%.4f\n",area);
    }
}
